<?php
//select all the items into the database and show them to screen
$items = mysql_query("SELECT ID, NAME, PRICE, IMAGE_URL, DESCRIPTION FROM items");

//extracting every single item
while($item = mysql_fetch_array($items))
	{
	?>
    <img src="<?php echo($item["IMAGE_URL"]); ?>" /><br />
    Item name: <?php echo($item["NAME"]); ?><br />
    Item description: <?php echo($item["DESCRIPTION"]); ?><br />
    <form action="mypage.php" method="get">
    	<input type="hidden" name="action" value="add" />
        <input type="hidden" name="item" value="<?php echo($item["ID"]); ?>" />
        <input type="text" name="quantity" /><br />
        <input type="submit" value="Add to cart" />
    </form>
    <?php
	}
?>